package com.yuchen.learning.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.sql.Timestamp;

@Data
@TableName("note")
public class Note {
    @TableId(type = IdType.AUTO)
    private Long id;             // 笔记ID
    private Long routeId;        // 所属路线ID
    private Long userId;         // 笔记创建者ID
    private String title;        // 笔记标题
    private String content;      // 笔记内容(Markdown)
    private String coverImg;     // 封面图片URL
    private String attachments;  // 附件列表(JSON字符串)
    private Timestamp createTime;// 创建时间
}